package com.wangjie.tests;

import org.junit.*;

public class Demo2 {

    @BeforeClass
    public static void beforeClassTest(){
        System.out.println("Demo2单元测试开始之前执行初始化");
        System.out.println("-----------------------------");
    }

    @Before
    public void beforeTest(){
        System.out.println("Demo2单元测试方法开始之前执行");
        System.out.println("-----------------------------");
    }
    @Test
    public void test1(){
        System.out.println("Demo2 test1");
        Assert.assertEquals(12,12);
    }

    @After
    public void afterTest(){
        System.out.println("Demo2单元测试方法结束之后执行");
        System.out.println("-----------------------------");
    }

    @AfterClass
    public static void afterClassTest(){
        System.out.println("Demo2单元测试结束之后执行");
        System.out.println("-----------------------------");
    }
}
